home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / SegLoad.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  1.8 KB  |  93 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        SegLoad.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT SegLoad;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __SEGLOAD__}
  27. {$SETC __SEGLOAD__ := 1}
  28.  
  29. {$I+}
  30. {$SETC SegLoadIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. CONST
  44.     appOpen                        = 0;                            {Open the Document (s)}
  45.     appPrint                    = 1;                            {Print the Document (s)}
  46.  
  47.  
  48. TYPE
  49.     AppFile = RECORD
  50.         vRefNum:                INTEGER;
  51.         fType:                    OSType;
  52.         versNum:                INTEGER;                                {versNum in high byte}
  53.         fName:                    Str255;
  54.     END;
  55. {
  56.     Because PowerPC applications don’t have segments,
  57.     UnloadSeg is unsupported for PowerPC.
  58. }
  59. {$IFC GENERATING68K }
  60.  
  61. PROCEDURE UnloadSeg(routineAddr: UNIV Ptr);
  62.     {$IFC NOT GENERATINGCFM}
  63.     INLINE $A9F1;
  64.     {$ENDC}
  65. {$ELSEC}
  66. {$ENDC}
  67. {$IFC NOT GENERATINGCFM }
  68.  
  69. PROCEDURE CountAppFiles(VAR message: INTEGER; VAR count: INTEGER);
  70. PROCEDURE GetAppFiles(index: INTEGER; VAR theFile: AppFile);
  71. PROCEDURE ClrAppFiles(index: INTEGER);
  72. PROCEDURE GetAppParms(VAR apName: Str255; VAR apRefNum: INTEGER; VAR apParam: Handle);
  73.     {$IFC NOT GENERATINGCFM}
  74.     INLINE $A9F5;
  75.     {$ENDC}
  76. {$ENDC}
  77.  
  78. PROCEDURE ExitToShell;
  79.     {$IFC NOT GENERATINGCFM}
  80.     INLINE $A9F4;
  81.     {$ENDC}
  82.  
  83. {$ALIGN RESET}
  84. {$POP}
  85.  
  86. {$SETC UsingIncludes := SegLoadIncludes}
  87.  
  88. {$ENDC} {__SEGLOAD__}
  89.  
  90. {$IFC NOT UsingIncludes}
  91.  END.
  92. {$ENDC}
  93.